package com.example.autumn.controller.portal;

import com.example.autumn.service.IUserExService;
import com.example.common.response.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Liaorun
 */
@RestController
@RequestMapping("/user/ex")
public class UserExController {

    @Resource
    private IUserExService userExService;

    @GetMapping("/mail-code")
    public R sendMailCode(@RequestParam String mail) {

        return userExService.sendMailCode(mail, false);
    }
}
